score1=int(input("功课1的分数: "))
score2=int(input("功课2的分数: "))
score3=int(input("功课3的分数: "))
num=score1+score2+score3
avg=num/3
print(num)
print(avg)